import Vue from  'vue';
import Vuex from 'vuex';
import user from './modules/user';
import permission from './modules/permission';
import setting from './modules/setting';
import getters from './getters';
// 项目中统一的getter
Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    user,
    permission,//路由权限
    setting,
  },
  getters,
})
export default store;